#include "WindowEventHandler.hpp"

WindowEventHandler::WindowEventHandler()
    : m_viewPortWidth(800)
    , m_viewPortHeight(600)
    , m_mousePositionX(0)
    , m_mousePositionY(0){}

void WindowEventHandler::setViewPort(const u32 width, const u32 height)
{
    m_viewPortWidth = width;
    m_viewPortHeight = height;
}

void WindowEventHandler::setMousePosition(const u32 x, const u32 y)
{
    m_mousePositionX = x;
    m_mousePositionY = y;

    m_mousePositionX = m_mousePositionX > m_viewPortWidth ? m_viewPortWidth : m_mousePositionX;
    m_mousePositionY = m_mousePositionY > m_viewPortHeight ? m_viewPortHeight : m_mousePositionY;
}

void WindowEventHandler::handleButtonEvent(const Button::Type &/*type*/, const Button::Action &/*action*/, const Button::Modifiers &/*modifiers*/)
{

}
